package cn.kgc.tangcco.anyang.commons.jdbc;

public class PageRang {
	// 页码号
	private int pageNumber;
	// 每页记录数
	private int pageSize;
	// 页面索引
	private int pageIndex;

	public PageRang() {
		super();
	}

	public PageRang(int pageNumber, int pageSize) {
		super();
		this.pageNumber = pageNumber;
		this.pageSize = pageSize;
		this.pageIndex = (pageNumber - 1) * pageSize;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

}
